package icu.wdtt.model;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

public class Role {
    @ApiModelProperty("主键")
    private int rid;
    @ApiModelProperty("角色名称")
    private String rname;
    @ApiModelProperty("角色描述")
    private String rdescribe;
    @ApiModelProperty("权限集合")
    private List<Authority> authorityList;

    public Role(int rid, String rname, String rdescribe, List<Authority> authorityList) {
        this.rid = rid;
        this.rname = rname;
        this.rdescribe = rdescribe;
        this.authorityList = authorityList;
    }

    public Role() {
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public String getRdescribe() {
        return rdescribe;
    }

    public void setRdescribe(String rdescribe) {
        this.rdescribe = rdescribe;
    }

    public List<Authority> getAuthorityList() {
        return authorityList;
    }

    public void setAuthorityList(List<Authority> authorityList) {
        this.authorityList = authorityList;
    }

    @Override
    public String toString() {
        return "Role{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                ", rdescribe='" + rdescribe + '\'' +
                ", authorityList=" + authorityList +
                '}';
    }
}
